package com.xiaolin.structure.hash.arrayandlinked;

/**
 * @ClassName MyHashTableTest
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/17
 * @Version 1.0
 */
public class MyHashTableTest {
    public static void main(String[] args) {
        MyHashTable hashTable=new MyHashTable(8);
        hashTable.add(new EntryLinked.Employee(1,"小林"));
        hashTable.add(new EntryLinked.Employee(9,"小林"));
        hashTable.add(new EntryLinked.Employee(9,"小黄"));
        hashTable.add(new EntryLinked.Employee(17,"小北"));
        System.out.println(hashTable);
        System.out.println(hashTable.getOne(9));
        hashTable.remove(1);
        System.out.println(hashTable);
        hashTable.list();
    }
}
